import {
  post,
  get,
  put,
  dalete,
  postJosn,
  putone,
  patch,
  daleteJson
} from '../utils/request';

//查询商品
export function queryGoodsPriceList(data) {
  return post('/api/goods-service/v1/goods/queryWarzonePriceList', data);
}


//新增商品
export function addGoodsPrice(data) {
  return put('/api/goods-service/v1/goods/addWarGoodsPrice', data);
}


//修改
export function updateGoodsPrice(data) {
  return post('/api/goods-service/v1/goods/updateWarGoodsPrice', data);
}

//删除
export function deletGoodsPrice(data) {
  return dalete('/api/goods-service/v1/goods/deletWarGoodsPrice', data);
}

//更新组织机构
export function updaterole(data) {
  return put('/api/goods-service/v1/goods/renewGoodsType', data);
}

//5.3.57　采购需求单创建
export function addRequirement(data) {
  return post('/v1/purchase/makePurchaseRequirement', data);
}
//5.3.57　采购需求单修改
export function modifyPurchaseRequirement(data) {
  return put('/v1/purchase/modifyPurchaseRequirement', data);
}
//5.3.57　采购需求单明细查询
export function Requirementinfo(data) {
  return get('/v1/purchase/queryPurchaseRequirementById', data);
}
//5.3.57　组织类型
export function getUserOrgType(data) {
  return post('/api/user-service/v1/user/getUserOrgType', data);
}
